<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/23
 * Time: 13:25
 */
namespace hotel\modules\apiadmin\controllers;

use hotel\common\models\Opinion;
use hotel\common\utils\Tool;
use \Yii;

class OpinionController extends CoreController
{


    /**
     * @return string
     */
    public function actionList()
    {
        $post = Yii::$app->request->post();
        $res = Opinion::lists($post,$this->appid);
        return Tool::showRes([0, '获取成功'], $res);
    }

    /**
     * @return string
     */
    public function actionEdit()
    {
        $post = Yii::$app->request->post();
        Opinion::updateData($post);
        return Tool::showRes([0, '操作成功']);
    }







}